package com.ny.wlw;

public class Bankpay implements Pay{
    double m=100;

    @Override
    public void pay(double money) {
       if (m>=money){
           System.out.println("银行卡支付"+money);
           m=m-money;
           System.out.println("你的余额为："+m);
       }
       else {
           System.out.println("你的余额不足");
       }
    }
}
